//
//  RootController.m
//  HappyBaby
//
//  Created by 华哥 on 15/11/24.
//  Copyright © 2015年 华哥. All rights reserved.
//

#import "RootController.h"
#import "ChildrenStoryController.h"
#import "UserController.h"
#import "BabyAnimationController.h"
#import "HappyPlayController.h"
#import "FascinatingController.h"
#import "HappyBabyController.h"

@interface RootController ()

@end

@implementation RootController

- (void)viewDidLoad {
    [super viewDidLoad];
    

//    HappyBaby 界面
    HappyBabyController *happyPlayNac = [[HappyBabyController alloc]initWithRootViewController:[[HappyPlayController alloc]init]];
    happyPlayNac.tabBarItem.title = @"HappyBaby";
    [self addChildViewController:happyPlayNac];
    
//    fascinating界面
    HappyBabyController *fascinatingNac = [[HappyBabyController alloc]initWithRootViewController:[[FascinatingController alloc]init]];
    fascinatingNac.tabBarItem.title = @"Fascinating";
    [self addChildViewController:fascinatingNac];
    
//    babyAnimation界面
    HappyBabyController *babyAnimationNac = [[HappyBabyController alloc]initWithRootViewController:[[BabyAnimationController alloc]init]];
    babyAnimationNac.tabBarItem.title = @"babyAnimation";
    [self addChildViewController:babyAnimationNac];
    
//    childernStory界面
    HappyBabyController *childernStoryNac = [[HappyBabyController alloc]initWithRootViewController:[[ChildrenStoryController alloc]init]];
    childernStoryNac.tabBarItem.title = @"childrenStory";
    [self addChildViewController:childernStoryNac];

//    User界面
    HappyBabyController *UserNac = [[HappyBabyController alloc]initWithRootViewController:[[UserController alloc]init]];
    UserNac.tabBarItem.title = @"User";
    [self addChildViewController:UserNac];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
